const Router = require("koa-router")

const categoryRouter = new Router({prefix: "/category"})

const { create,list,edit,remove } = require("../controller/category.controller")

// 新增物品类别
categoryRouter.put("/",create)
// 获取物品类别列表
categoryRouter.get("/",list)
// 修改物品类别
categoryRouter.post("/",edit)
// 删除物品类别
categoryRouter.delete("/",remove)

module.exports = categoryRouter